<table>
  <tr>
    <td>
      <b>{$smarty.const._UNOCART_ORDER_NUMBER}:</b> {$order->order_id}
    </td>
  </tr>
  <tr>
    <td>
      <b>{$smarty.const._UNOCART_ORDER_STATUS}:</b> {$order->status_name}
    </td>
  </tr>
  <tr>
    <td>
      <b>{$smarty.const._UNOCART_ORDER_DATE}:</b> {$order->order_date}
    </td>
  </tr>
  <tr>
    <td>
      <b>{$smarty.const._UNOCART_PRICE_TOTAL}:</b> {format_price price=$order->order_total currency=$order->order_currency}
    </td>
  </tr>
</table>
<table class = "unocart_border">
  <tr>
    <td style = "width:50%; vertcial-align:top">
      <table class = "unocart">
        <tr>
          <td colspan=2><b>{$smarty.const._UNOCART_EMAIL_BILL_TO}</b></td>
        </tr>
        <tr>
          <td width = "40%">{$smarty.const._UNOCART_FIRMA_NAME}:</td>
          <td width = "60%">{$order->firma_name}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_FULL_NAME} :</td>
          <td>{$order->f_name} {$order->l_name}</td>
        </tr>
        <tr valign=top>
          <td>{$smarty.const._UNOCART_STREET_NR}:</td>
          <td>{$order->street}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_CITY} :</td>
          <td>{$order->city}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_STATE} :</td>
          <td>{$order->state}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_ZIP} :</td>
          <td>{$order->zip}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_COUNTRY} :</td>
          <td>{$order->country}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_TELEFON} :</td>
          <td>{$order->phone}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_FAX} :</td>
          <td>{$order->fax}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_EMAIL}:</td>
          <td>{$order->email}</td>
        </tr>
        <tr>
          <td colspan = "2" style = "padding-top:15px">
            <b>{$smarty.const._UNOCART_PAYMENT_INFORMATION}</b>
          </td>
        </tr>
        <tr>
          <td>
            {$order->payment_params|nl2br}
          </td>
        </tr>
      </table>
      <table class = "unocart" style = "margin-top:15px">
        <tr>
          <td colspan=2><b>{$smarty.const._UNOCART_EMAIL_SHIP_TO}</b></td>
        </tr>
        <tr>
          <td width = "40%">{$smarty.const._UNOCART_FIRMA_NAME}:</td>
          <td width = "60%">{$order->d_firma_name}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_FULL_NAME} </td>
          <td>{$order->d_f_name} {$order->d_l_name}</td>
        </tr>
        <tr valign=top>
          <td>{$smarty.const._UNOCART_STREET_NR}:</td>
          <td>{$order->d_street}<br></td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_CITY} :</td>
          <td>{$order->d_city}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_STATE} :</td>
          <td>{$order->d_state}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_ZIP} :</td>
          <td>{$order->d_zip}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_COUNTRY} :</td>
          <td>{$order->country}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_TELEFON} :</td>
          <td>{$order->d_phone}</td>
        </tr>
      </table>
	  {if $order->order_add_info}
	  <table class = "unocart" style = "margin-top:15px">
	    <tr>
		  <td width = "100%">
		    <b>{$smarty.const._UNOCART_ORDER_COMMENT}</b><br />
		    {$order->order_add_info}
		  </td>
		</tr>
	  </table>
	  {/if}
	  <table class = "unocart" style = "margin-top:15px">
	    <tr>
		  <td width = "100%">
		    <b>{$smarty.const._UNOCART_ORDER_HISTORY}</b><br />
		    <table>
		    {foreach from=$order->history item=history}
		       <tr>
		         <td>
                   {$history->status_date_added|date_format:"%Y-%m-%d"}
		         </td>
		         <td>
                   {$history->status_name}
		         </td>
		         <td>
                   {$history->comments}
		         </td>
		       </tr>
		    {/foreach}
		    </table>
		  </td>
		</tr>
	  </table>
    </td>
    <td style = "vertcial-align:top; width:50%">
      <table>
        <tr>
          <td colspan = "3">
            <B>{$smarty.const._UNOCART_PRODUCTS}:</B>
          </td>
        </tr>
        {foreach from=$order->items item=prod}
        <tr>
          <td class = "nobr">
            {$prod->product_quantity} x
          </td>
          <td>
            {$prod->product_name}<br />
            <span class = "attr">{$prod->product_attributes|nl2br}</span>
          </td>
          <td class = "nobr">
            {format_price price=$prod->product_item_price*$prod->product_quantity currency=$order->order_currency}
          </td>
        </tr>
        {/foreach}
        <tr>
          <td colspan = "2" class = "right">
            {$smarty.const._UNOCART_PRICE_SUBTOTAL}:
          </td>
          <td>
           {format_price price=$order->order_subtotal currency=$order->order_currency}
          </td>
        </tr>
        <tr>
          <td colspan = "2" class = "right">
            {$smarty.const._UNOCART_SHIPPING_PRICE}:
          </td>
          <td>
           {format_price price=$order->order_shipping currency=$order->order_currency}
          </td>
        </tr>
        {if $order->order_discount>0}
        <tr>
          <td colspan = "2" class = "right">
            {$smarty.const._UNOCART_RABATT_VALUE}:
          </td>
          <td>
           -{format_price price=$order->order_discount currency=$order->order_currency}
          </td>
        </tr>
        {/if}
        <tr>
          <td colspan = "2" class = "right">
            {$smarty.const._UNOCART_PRICE_TOTAL}:
          </td>
          <td>
           {format_price price=$order->order_total currency=$order->order_currency}
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>